with dynamic shapes